import { request } from "../../utils/request";

//文生视频
export function ApigetVideoBytext(data)
{
	return request({
		method: "POST",
		url:"video/textVideo",
		data
	})
}

//图生视频
export function ApigetVideoBypicture(data)
{
	return request({
		method: "POST",
		url:"video/imgVideo",
		data
	})
}

//根据时间获取用户生成的视频的次数
export function ApigetVideobyTime(time)
{
	return request({
		method: "GET",
		url:`video/getVideoCountByTime?time=${time}`
	})
}

//获取所有的生成的视频
export function ApigetAllVideos()
{
	return request({
		method: "GET",
		url:"video/getAllVideo"
	})
}

//根据id删除生成的视频
export function ApideleteVideoByid(id)
{
	return request({
		method: "GET",
		url:`video/deleteVideoById?id=${id}`
	})
}

//分页获取生成的视频
export function ApigetVidoesByPage(data={})
{
	return request({
		method: "POST",
		url:"video/getVideoByPage",
		data
	})
}